package com.china.produce.config.zk;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.List;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2024/12/21
 */
@Data
@ConfigurationProperties(prefix = "zookeeper.sdk.config", ignoreInvalidFields = true)
public class ZookeeperClientConfigProperties {

    private String connectString;

    private int baseSleepTimeMs;

    private int maxRetries;

    private int sessionTimeoutMs;

    private int connectionTimeoutMs;

    private List<String> source;

    private TYPES types;

    @Data
    public static class TYPES{

        private String name;

        private Integer num;
    }

}
